from tortoise import BaseDBAsyncClient

RUN_IN_TRANSACTION = True


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `class` ADD `room` VARCHAR(50) NOT NULL COMMENT '教室号';"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `class` DROP COLUMN `room`;"""


MODELS_STATE = (
    "eJztmV1vmzAUhv9KlatN6ibyQUJ3l6ar1n20UttNk9YKOWAIKrEz26yNpvz32QZiQ4CSZm"
    "nolpu0OT7H2A/Hfn2c360pdmFI345CQFvvDn63EJhC/k/GfnjQArOZsgoDA+NQOjrcI3YZ"
    "U0aAw7jRAyGF3ORC6pBgxgKMhOtNNOhCl39CMLiJLKtviTgXOzwwQH65S4SCnxG0GfYhm0"
    "DCHX/ccnOAXPgAafp1dmd7AQzdzDwCV3Qg7Tabz6TtDLFT6SiePrYdHEZTpJxnczbBaOkd"
    "ICasPkSQAAZF94xEYnooCsMEQzrjeKTKJR6iFuNCD0ShgCSiqxmdneT5JDEORoI1H1n80n"
    "zxxDeddm/Qs7r9nsVd5KiWlsEinqriEAdKGufXrYVsBwzEHhKpYij/rlAcTQApxpj650Dy"
    "IedBptiqSKYGhVKlV32WN5HZM8T/R55Rk+oUPNghRD6b8K+mUYHw2/By9GF4+co0Xou+MV"
    "8G8eI4T1o6sklQVlQJxtN1qKb+u6faN80jznMMevyz6w12x1Mse+9OS1phGAPn7h4Q1860"
    "KPCURS4Ug1qBf5xEnn66hCGQE14FnuyMV3Evz8o+NT7KepEmT2pNNiAJDHdwGbHVpmlnmr"
    "cABHw5avFs8aRUK3BEKCxUkbilWkeUTw0hscYe5IsZGONSISly+X+EpHaq7MWjbJvTE6hp"
    "4sEgcHgC22tlZTbo8ezcuo50LSvFnGgKNFaW8vbSdkU9Vviuwj3FBAY++gTnkvEZHxRATl"
    "HGJnvfterppbAtUw9uJuB+uTfm8olPnU8Ysnh9D69Gw5P3rUW5IG8oRXX0/AtA82ssPmu+"
    "rA1Efdv7dMVLk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